package mqq.view; 

import javax.swing.JFrame;

import mqq.model.DecisionLinesEvent;

/**
 * GUI object at the top-most level
 * @author mqq
 */
public class Application extends JFrame{
	/** The inner panel which holds every thing */
	ApplicationPanel panel;
	
	/**
	 * Create an Application and associate it with an Decision Lines Event
	 * @param e  The Decision Lines Event
	 */
	public Application(DecisionLinesEvent e) {
		super();
		this.panel = new ApplicationPanel(e);
		this.setSize(600, 540);  // need to change the location of the text fields
								 // and the lines when changing this dimension
		this.setLocation(0, 0);
		this.add(panel);
	}
	
	/**
	 * Get the inner panel
	 * @return  The inner panel
	 */
	public ApplicationPanel getInnerPanel() {
		return this.panel;
	}
}
